package org.cyk.demo2;

import java.util.HashMap;
import java.util.List;

public class UserinfoMapper {

    private HashMap<Integer, Userinfo> db = new HashMap<>();

    public UserinfoMapper() {
        db.put(1, new Userinfo(1, "cyk", 20));
        db.put(2, new Userinfo(2, "lyj", 19));
        db.put(3, new Userinfo(3, "pdd", 100));
    }

    public Userinfo getUserinfoById(Integer id) {
        return db.get(id);
    }

}
